-- GENERATED SPELL FOR [Felendren the Banished] --


function spell0_15367(pUnit, Event) --@Mind Flay,n/a--
pUnit:FullCastSpellOnTarget(16568,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15367', 3000, 1)
end

function Sorts_15367(pUnit, Event)
local choix_sorts_15367 = math.random(0, 0)
if choix_sorts_15367 == 0 then
pUnit:RegisterEvent('spell0_15367', 1, 1)
end
end

function mob15367_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15367', math.random(1500, 3000), 1)
end

function mob15367_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15367_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15367_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15367, 1, 'mob15367_Action')
RegisterUnitEvent(15367, 2, 'mob15367_Leave')
RegisterUnitEvent(15367, 3, 'mob15367_Kill')
RegisterUnitEvent(15367, 4, 'mob15367_Die')
